(function () {
	return {
       before: function (data) {
              return data;
       },
       after: function () {
       	var _this = this;
       	var onLoadSuccess=function () {
       	}
       	bootstrapTable(_this.$(".bootstrapTable"), {
		       	url: 'ylVideo/findPage',
				sortOrder:"desc",
				sortName:"createTime",
		       	columns: [		       	{
 		      	    field: 'id',
		       	    title: '',
 		      	    visible:false,
		       	    sortable:true
 		      	},
		       	{
 		      	    field: 'userId',
		       	    title: '用户uuid',
					visible:false,
		       	    sortable:true
 		      	},
		       	{
 		      	    field: 'cover',
		       	    title: '封面图',
		       	    sortable:true
 		      	},
		       	{
 		      	    field: 'url',
		       	    title: '资源url',
		       	    sortable:true
 		      	},
		       	{
 		      	    field: 'brief',
		       	    title: '视频描述',
		       	    sortable:true
 		      	},
		       	{
 		      	    field: 'labels',
		       	    title: '标签',
		       	    sortable:true
 		      	},
		       	{
 		      	    field: 'likeNum',
		       	    title: '获赞数',
		       	    sortable:true
 		      	},
		       	{
 		      	    field: 'commentNum',
		       	    title: '',
		       	    sortable:true
 		      	},
		       	{
 		      	    field: 'shareNum',
		       	    title: '分享次数',
		       	    sortable:true
 		      	},
		       	{
 		      	    field: 'seeNum',
		       	    title: '观看次数',
		       	    sortable:true
 		      	},
		       	{
 		      	    field: 'isValid',
		       	    title: '状态',
		       	    sortable:true,
					formatter:function(v){
 		      	    	if(v==0){
 		      	    		return "已删除"
						}else if(v==1){
 		      	    		return "运营中"
						}else if(v==2){
 		      	    		return "审核中";
 		      	    	}else if(v==3){
 		      	    		return "审核拒绝"
						}
					}
 		      	},
		       	{
 		      	    field: 'checkRemark',
		       	    title: '审核备注',
		       	    sortable:true
 		      	},
		       	{
 		      	    field: 'createTime',
		       	    title: '创建时间',
		       	    sortable:true
 		      	},
		       	{
 		      	    field: 'updateTime',
		       	    title: '更新时间',
		       	    sortable:true
 		      	}
		       	],
		       	onLoadSuccess: onLoadSuccess
			});
		}
	}
});
